package org.darkforest.dao.mapper;

import org.darkforest.dao.annotation.DBMapper;
import org.darkforest.model.OrderCommon;
import org.darkforest.model.OrderImformation;

@DBMapper
public interface OrderCommonMapper {
    int deleteByPrimaryKey(Integer orderId);

    int insert(OrderCommon record);

    int insertSelective(OrderCommon record);

    OrderCommon selectByPrimaryKey(Integer orderId);

    int updateByPrimaryKeySelective(OrderCommon record);

    int updateByPrimaryKeyWithBLOBs(OrderCommon record);

    int updateByPrimaryKey(OrderCommon record);

    int insertOrderImformation(OrderCommon orderCommon);

    /**
     * 根据订单主键获取订单全部信息
     * @param orderId
     */
    OrderImformation getOrderImformationByPrimary(Integer orderId);


}